.class public Lcom/estrongs/fs/impl/adb/c;
.super Ljava/lang/Object;
.source "AdbFileSystem.java"

# interfaces
.implements Lcom/estrongs/fs/j;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/fs/impl/adb/c$b;,
        Lcom/estrongs/fs/impl/adb/c$c;
    }
.end annotation


# static fields
.field private static final a:Ljava/lang/String; = "c"

.field private static b:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/g4;",
            ">;"
        }
    .end annotation
.end field

.field private static c:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/impl/adb/c$c;",
            ">;"
        }
    .end annotation
.end field

.field private static d:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field private static e:Z


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .line 1
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/adb/c;->c:Ljava/util/HashMap;

    .line 3
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/adb/c;->d:Ljava/util/HashMap;

    const/4 v1, 0x0

    .line 4
    sput-boolean v1, Lcom/estrongs/fs/impl/adb/c;->e:Z

    const/16 v1, 0x64

    .line 5
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "INSTALL_FAILED_ALREADY_EXISTS"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->d:Ljava/util/HashMap;

    const/16 v1, 0x65

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "INSTALL_FAILED_INSUFFICIENT_STORAGE"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 7
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->d:Ljava/util/HashMap;

    const/16 v1, 0x66

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "INSTALL_FAILED_INVALID_APK"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->d:Ljava/util/HashMap;

    const/16 v1, 0x67

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const-string v2, "INSTALL_FAILED_REPLACE_COULDNT_DELETE"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private static a(Les/g4;Ljava/lang/String;Z)I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;,
            Ljava/io/UnsupportedEncodingException;,
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "shell:pm install "

    if-eqz p2, :cond_0

    .line 130
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, " -r "

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 131
    :cond_0
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 132
    invoke-virtual {p0, p1}, Les/g4;->a(Ljava/lang/String;)Les/j4;

    move-result-object p0

    :cond_1
    const/16 p1, 0x68

    .line 133
    :try_start_0
    invoke-virtual {p0}, Les/j4;->read()[B

    move-result-object p2

    .line 134
    new-instance v0, Ljava/lang/String;

    invoke-direct {v0, p2}, Ljava/lang/String;-><init>([B)V

    .line 135
    sget-boolean p2, Lcom/estrongs/fs/impl/adb/c;->e:Z

    if-eqz p2, :cond_2

    sget-object p2, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "########install result "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {p2, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    const-string p2, "Success"

    .line 136
    invoke-virtual {v0, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_3

    const/4 p1, 0x0

    goto :goto_0

    :cond_3
    const-string p2, "Failure"

    .line 137
    invoke-virtual {v0, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1

    .line 138
    sget-object p2, Lcom/estrongs/fs/impl/adb/c;->d:Ljava/util/HashMap;

    invoke-virtual {p2}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object p2

    invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :cond_4
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_5

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 139
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 140
    invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 141
    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/Integer;

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 142
    invoke-virtual {p2}, Ljava/io/IOException;->printStackTrace()V

    .line 143
    :cond_5
    :goto_0
    invoke-virtual {p0}, Les/j4;->close()V

    return p1
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Z)I
    .locals 16

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v2, p2

    .line 92
    invoke-static/range {p1 .. p1}, Lcom/estrongs/fs/impl/adb/c;->l(Ljava/lang/String;)Les/g4;

    move-result-object v3

    const/16 v4, 0x68

    if-eqz v3, :cond_a

    .line 93
    invoke-static/range {p0 .. p0}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->isAndroidApp(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_0

    goto/16 :goto_2

    .line 94
    :cond_0
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    const v6, 0x7f1100e8

    .line 95
    :try_start_0
    invoke-static/range {p0 .. p0}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v8
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    const/4 v9, 0x6

    const-string v10, "/"

    const/4 v11, 0x2

    const/4 v12, 0x1

    const/4 v13, 0x0

    if-eqz v8, :cond_4

    :try_start_1
    invoke-static/range {p0 .. p1}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_4

    .line 96
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v8

    invoke-virtual {v8, v0}, Lcom/estrongs/fs/f;->f(Ljava/lang/String;)J

    move-result-wide v14

    .line 97
    invoke-static {v1, v13}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Z)Lcom/estrongs/fs/impl/adb/c$c;

    move-result-object v8

    if-eqz v8, :cond_3

    .line 98
    iget-object v7, v8, Lcom/estrongs/fs/impl/adb/c$c;->b:Ljava/lang/String;

    if-nez v7, :cond_1

    goto :goto_0

    .line 99
    :cond_1
    iget-object v7, v8, Lcom/estrongs/fs/impl/adb/c$c;->b:Ljava/lang/String;

    .line 100
    invoke-virtual {v7, v10}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 101
    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v8

    sub-int/2addr v8, v12

    invoke-virtual {v7, v13, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    .line 102
    :cond_2
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static/range {p0 .. p0}, Lcom/estrongs/fs/impl/adb/c;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 103
    invoke-static {v3, v7, v2}, Lcom/estrongs/fs/impl/adb/c;->a(Les/g4;Ljava/lang/String;Z)I

    move-result v2

    if-eqz v5, :cond_7

    .line 104
    instance-of v3, v5, Les/r60;

    if-eqz v3, :cond_7

    const/16 v3, 0x9

    new-array v7, v11, [Ljava/lang/Object;

    .line 105
    invoke-static {v14, v15}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v8

    aput-object v8, v7, v13

    invoke-static {v14, v15}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v8

    aput-object v8, v7, v12

    invoke-virtual {v5, v3, v7}, Les/s80;->b(I[Ljava/lang/Object;)V

    goto/16 :goto_1

    :cond_3
    :goto_0
    return v4

    :cond_4
    const/16 v7, 0x8

    .line 106
    invoke-static {v7}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v7

    sget-object v8, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;

    invoke-virtual {v7, v8}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    move-result-object v7

    const-string v8, "SEND"

    const-string v14, "UTF-8"

    .line 107
    invoke-virtual {v8, v14}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;

    const-string v8, "sync:"

    .line 108
    invoke-virtual {v3, v8}, Les/g4;->a(Ljava/lang/String;)Les/j4;

    move-result-object v8

    .line 109
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    const-string v15, "/data/local/tmp/"

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static/range {p0 .. p0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    .line 110
    invoke-static {v14}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    const-string v15, "%2F"

    invoke-virtual {v14, v15, v10}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v10

    const-string v14, "+"

    const-string v15, "%20"

    invoke-virtual {v10, v14, v15}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v10

    .line 111
    invoke-virtual {v10}, Ljava/lang/String;->length()I

    move-result v14

    add-int/2addr v14, v9

    .line 112
    invoke-virtual {v7, v14}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;

    .line 113
    invoke-virtual {v7}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v7

    invoke-virtual {v8, v7}, Les/j4;->write([B)V

    .line 114
    invoke-static {v8, v0, v10}, Lcom/estrongs/fs/impl/adb/c;->a(Les/j4;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_5

    .line 115
    invoke-virtual {v8}, Les/j4;->close()V

    .line 116
    invoke-static {v3, v10, v2}, Lcom/estrongs/fs/impl/adb/c;->a(Les/g4;Ljava/lang/String;Z)I

    move-result v2
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 117
    :try_start_2
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "shell:rm "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 118
    invoke-virtual {v3, v7}, Les/g4;->a(Ljava/lang/String;)Les/j4;

    move-result-object v3

    .line 119
    invoke-virtual {v3}, Les/j4;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_1

    :catch_0
    nop

    goto :goto_1

    :cond_5
    if-eqz v5, :cond_6

    .line 120
    :try_start_3
    instance-of v2, v5, Les/r60;

    if-eqz v2, :cond_6

    .line 121
    invoke-virtual {v8}, Les/j4;->close()V

    .line 122
    new-instance v0, Les/u80$a;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v1, 0x2710

    invoke-virtual {v5, v1, v0}, Les/s80;->b(ILjava/lang/Object;)V

    return v4

    :cond_6
    const/4 v2, 0x0

    :cond_7
    :goto_1
    if-eqz v5, :cond_8

    .line 123
    instance-of v3, v5, Les/r60;

    if-eqz v3, :cond_8

    new-array v3, v11, [Ljava/lang/Object;

    const-wide/16 v7, 0x1

    .line 124
    invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v7

    aput-object v7, v3, v13

    aput-object v0, v3, v12

    invoke-virtual {v5, v12, v3}, Les/s80;->b(I[Ljava/lang/Object;)V

    const/16 v3, 0xd

    new-array v7, v11, [Ljava/lang/Object;

    aput-object v0, v7, v13

    aput-object v1, v7, v12

    .line 125
    invoke-virtual {v5, v3, v7}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    :cond_8
    return v2

    :catch_1
    move-exception v0

    if-eqz v5, :cond_9

    .line 126
    instance-of v1, v5, Les/r60;

    if-eqz v1, :cond_9

    .line 127
    new-instance v1, Les/u80$a;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v2, 0x2710

    invoke-virtual {v5, v2, v1}, Les/s80;->b(ILjava/lang/Object;)V

    .line 128
    :cond_9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    return v4

    .line 129
    :cond_a
    :goto_2
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v1, "installApk failed, get connection null"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v4
.end method

.method public static a(Lcom/estrongs/fs/g;)Ljava/io/InputStream;
    .locals 4

    .line 203
    instance-of v0, p0, Lcom/estrongs/fs/impl/adb/a;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 204
    :cond_0
    check-cast p0, Lcom/estrongs/fs/impl/adb/a;

    .line 205
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "command"

    const-string v3, "getAppThumbnail"

    .line 206
    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "appPackageName"

    .line 207
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/adb/a;->n()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 208
    new-instance v2, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v3, "UTF-8"

    invoke-direct {v2, v0, v3}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 209
    invoke-virtual {p0}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0, v2}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Ljava/io/InputStream;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 210
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v1
.end method

.method private a(I)Ljava/lang/String;
    .locals 1

    if-eqz p1, :cond_4

    const/4 v0, 0x1

    if-eq p1, v0, :cond_3

    const/4 v0, 0x2

    if-eq p1, v0, :cond_2

    const/4 v0, 0x3

    if-eq p1, v0, :cond_1

    const/4 v0, 0x4

    if-eq p1, v0, :cond_0

    const/4 p1, 0x0

    return-object p1

    :cond_0
    const-string p1, "listAppsAll"

    return-object p1

    :cond_1
    const-string p1, "listAppsSdcard"

    return-object p1

    :cond_2
    const-string p1, "listAppsPhone"

    return-object p1

    :cond_3
    const-string p1, "listAppsSystem"

    return-object p1

    :cond_4
    const-string p1, "listApps"

    return-object p1
.end method

.method public static a(Landroid/content/Context;I)Ljava/lang/String;
    .locals 0

    packed-switch p1, :pswitch_data_0

    const/4 p0, 0x0

    goto :goto_0

    :pswitch_0
    const p1, 0x7f1100e7

    .line 211
    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    goto :goto_0

    :pswitch_1
    const p1, 0x7f1100e6

    .line 212
    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    goto :goto_0

    :pswitch_2
    const p1, 0x7f1100e5

    .line 213
    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    goto :goto_0

    :pswitch_3
    const p1, 0x7f1100e4

    .line 214
    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    :goto_0
    return-object p0

    nop

    :pswitch_data_0
    .packed-switch 0x64
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public static a(Lcom/estrongs/fs/impl/adb/c$b;)Ljava/lang/String;
    .locals 3

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 193
    :cond_0
    iget v0, p0, Lcom/estrongs/fs/impl/adb/c$b;->f:I

    const-string v1, "/appsuser"

    if-eqz v0, :cond_4

    const/4 v2, 0x1

    if-eq v0, v2, :cond_3

    const/4 v2, 0x2

    if-eq v0, v2, :cond_2

    const/4 v2, 0x3

    if-eq v0, v2, :cond_1

    goto :goto_0

    :cond_1
    const-string v1, "/appssdcard"

    goto :goto_0

    :cond_2
    const-string v1, "/appsphone"

    goto :goto_0

    :cond_3
    const-string v1, "/appssystem"

    .line 194
    :cond_4
    :goto_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "adb://"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/estrongs/fs/impl/adb/c$b;->e:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p0, p0, Lcom/estrongs/fs/impl/adb/c$b;->a:Ljava/lang/String;

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static a(Les/p80;)Ljava/lang/String;
    .locals 5

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 187
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object p0

    const/16 v0, 0x13

    .line 188
    invoke-static {p0, v0}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    .line 189
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->G(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 190
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 191
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 192
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "adb://"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz v1, :cond_1

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ":"

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "@"

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_1
    const-string v1, ""

    :goto_0
    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/files"

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static a(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Lorg/json/JSONArray;
    .locals 1

    const/4 v0, 0x0

    .line 76
    :try_start_0
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/adb/c;->d(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Ljava/lang/String;

    move-result-object p0

    if-eqz p0, :cond_1

    .line 77
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p1

    if-nez p1, :cond_0

    goto :goto_0

    .line 78
    :cond_0
    new-instance p1, Lorg/json/JSONArray;

    invoke-direct {p1, p0}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :cond_1
    :goto_0
    return-object v0

    :catch_0
    move-exception p0

    .line 79
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0
.end method

.method public static a()V
    .locals 3

    .line 195
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 196
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 197
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 198
    :try_start_0
    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/g4;

    const-string v2, "stop"

    .line 199
    invoke-static {v1, v2}, Lcom/estrongs/fs/impl/adb/c;->a(Les/g4;Ljava/lang/String;)Z

    .line 200
    invoke-virtual {v1}, Les/g4;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 201
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    .line 202
    :cond_0
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    return-void
.end method

.method public static a(Les/g4;Ljava/lang/String;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/UnsupportedEncodingException;,
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p0, :cond_0

    .line 175
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string p1, "installApk failed, get connection null"

    invoke-static {p0, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v0

    .line 176
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "shell:am start -n com.estrongs.android.pop/.app.AdbControllerActivity -e adbRemoteIp "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 177
    invoke-static {}, Lcom/estrongs/android/util/f0;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " -e adbControlMode "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 178
    invoke-virtual {p0, p1}, Les/g4;->a(Ljava/lang/String;)Les/j4;

    move-result-object p0

    .line 179
    invoke-virtual {p0}, Les/j4;->isClosed()Z

    move-result p1

    if-eqz p1, :cond_1

    return v0

    :cond_1
    const/4 p1, 0x1

    .line 180
    :cond_2
    :goto_0
    :try_start_0
    invoke-virtual {p0}, Les/j4;->d()[B

    move-result-object v1

    .line 181
    new-instance v2, Ljava/lang/String;

    invoke-direct {v2, v1}, Ljava/lang/String;-><init>([B)V

    .line 182
    sget-boolean v1, Lcom/estrongs/fs/impl/adb/c;->e:Z

    if-eqz v1, :cond_3

    .line 183
    sget-object v1, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "############# invokeRemoteAdbController ret"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v4, Ljava/lang/String;

    invoke-direct {v4, v2}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    const-string v1, "Error"

    .line 184
    invoke-virtual {v2, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz v1, :cond_2

    const/4 p1, 0x0

    goto :goto_0

    .line 185
    :catch_0
    invoke-virtual {p0}, Les/j4;->close()V

    return p1
.end method

.method private static a(Les/j4;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 22
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;,
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    .line 144
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v3, p2

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, ",33206"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/high16 v3, 0x10000

    new-array v4, v3, [B

    .line 145
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    .line 146
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v6

    invoke-virtual {v6, v1}, Lcom/estrongs/fs/f;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v6

    const/4 v7, 0x0

    if-nez v6, :cond_0

    .line 147
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v1, "sendFile error fail to get file input stream"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v7

    .line 148
    :cond_0
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v8

    invoke-virtual {v8, v1}, Lcom/estrongs/fs/f;->f(Ljava/lang/String;)J

    move-result-wide v8

    const-wide/16 v10, 0x0

    const/16 v12, 0x1000

    .line 149
    invoke-static {v12}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v13

    sget-object v14, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;

    invoke-virtual {v13, v14}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    move-result-object v13

    const/4 v15, 0x1

    .line 150
    :goto_0
    invoke-virtual {v6, v4, v7, v3}, Ljava/io/InputStream;->read([BII)I

    move-result v14

    const/4 v7, -0x1

    const-string v12, "UTF-8"

    if-eq v14, v7, :cond_a

    if-eqz v5, :cond_1

    .line 151
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v7

    if-eqz v7, :cond_1

    goto/16 :goto_7

    :cond_1
    if-ge v14, v3, :cond_2

    move v7, v14

    goto :goto_1

    :cond_2
    const/high16 v7, 0x10000

    :goto_1
    move-wide/from16 v16, v10

    const/4 v10, 0x1

    const/4 v11, 0x0

    :goto_2
    sub-int v18, v7, v11

    if-lez v18, :cond_9

    if-eqz v5, :cond_3

    .line 152
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v18

    if-eqz v18, :cond_3

    goto/16 :goto_6

    .line 153
    :cond_3
    invoke-virtual {v13}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    if-eqz v15, :cond_4

    .line 154
    invoke-virtual {v2, v12}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v15

    invoke-virtual {v13, v15}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;

    .line 155
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v15

    move/from16 v18, v15

    const/4 v15, 0x0

    goto :goto_3

    :cond_4
    const/16 v18, 0x0

    :goto_3
    if-eqz v10, :cond_5

    const-string v10, "DATA"

    .line 156
    invoke-virtual {v10, v12}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v10

    invoke-virtual {v13, v10}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;

    .line 157
    invoke-virtual {v13, v7}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;

    add-int/lit8 v18, v18, 0x8

    move-object/from16 v19, v6

    move/from16 v3, v18

    const/4 v10, 0x0

    goto :goto_4

    :cond_5
    move-object/from16 v19, v6

    move/from16 v3, v18

    :goto_4
    move-object/from16 v18, v2

    const/16 v2, 0x1000

    rsub-int v6, v3, 0x1000

    sub-int v2, v14, v11

    if-le v6, v2, :cond_6

    move v6, v2

    .line 158
    :cond_6
    invoke-virtual {v13, v4, v11, v6}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;

    add-int/2addr v11, v6

    .line 159
    invoke-virtual {v13}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v2

    .line 160
    invoke-virtual {v13}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v20

    if-lez v20, :cond_7

    add-int/2addr v3, v6

    .line 161
    new-array v2, v3, [B

    move-object/from16 v20, v4

    .line 162
    invoke-virtual {v13}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v4

    move/from16 v21, v7

    const/4 v7, 0x0

    invoke-static {v4, v7, v2, v7, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    goto :goto_5

    :cond_7
    move-object/from16 v20, v4

    move/from16 v21, v7

    .line 163
    :goto_5
    invoke-virtual {v0, v2}, Les/j4;->write([B)V

    if-eqz v5, :cond_8

    .line 164
    instance-of v3, v5, Les/r60;

    if-eqz v3, :cond_8

    int-to-long v3, v6

    add-long v16, v16, v3

    const/4 v3, 0x2

    new-array v4, v3, [Ljava/lang/Object;

    .line 165
    array-length v2, v2

    int-to-long v6, v2

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    const/4 v6, 0x0

    aput-object v2, v4, v6

    const/4 v2, 0x1

    aput-object v1, v4, v2

    invoke-virtual {v5, v3, v4}, Les/s80;->b(I[Ljava/lang/Object;)V

    new-array v4, v3, [Ljava/lang/Object;

    .line 166
    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v4, v6

    invoke-static/range {v16 .. v17}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v4, v2

    const/16 v2, 0x9

    invoke-virtual {v5, v2, v4}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_8
    move-object/from16 v2, v18

    move-object/from16 v6, v19

    move-object/from16 v4, v20

    move/from16 v7, v21

    const/high16 v3, 0x10000

    goto/16 :goto_2

    :cond_9
    :goto_6
    move-object/from16 v18, v2

    move-object/from16 v20, v4

    move-object/from16 v19, v6

    move-wide/from16 v10, v16

    move-object/from16 v2, v18

    move-object/from16 v6, v19

    move-object/from16 v4, v20

    const/high16 v3, 0x10000

    const/4 v7, 0x0

    const/16 v12, 0x1000

    goto/16 :goto_0

    :cond_a
    :goto_7
    const/16 v1, 0x8

    .line 167
    invoke-static {v1}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v1

    sget-object v2, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;

    invoke-virtual {v1, v2}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;

    move-result-object v1

    const-string v2, "DONE"

    .line 168
    invoke-virtual {v2, v12}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/nio/ByteBuffer;->put([B)Ljava/nio/ByteBuffer;

    .line 169
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    long-to-int v3, v2

    invoke-virtual {v1, v3}, Ljava/nio/ByteBuffer;->putInt(I)Ljava/nio/ByteBuffer;

    .line 170
    invoke-virtual {v1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Les/j4;->write([B)V

    .line 171
    invoke-virtual/range {p0 .. p0}, Les/j4;->read()[B

    move-result-object v0

    .line 172
    new-instance v1, Ljava/lang/String;

    invoke-direct {v1, v0, v12}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    const-string v0, "OKAY"

    invoke-virtual {v1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_c

    if-eqz v5, :cond_b

    .line 173
    instance-of v0, v5, Les/r60;

    if-eqz v0, :cond_b

    const/4 v0, 0x2

    new-array v0, v0, [Ljava/lang/Object;

    .line 174
    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    const/4 v2, 0x1

    aput-object v1, v0, v2

    const/16 v1, 0x9

    invoke-virtual {v5, v1, v0}, Les/s80;->b(I[Ljava/lang/Object;)V

    goto :goto_8

    :cond_b
    const/4 v2, 0x1

    :goto_8
    return v2

    :cond_c
    const/4 v2, 0x0

    return v2
.end method

.method public static a(Ljava/lang/String;I)Z
    .locals 2

    .line 219
    :try_start_0
    new-instance v0, Ljava/net/Socket;

    invoke-direct {v0}, Ljava/net/Socket;-><init>()V

    .line 220
    new-instance v1, Ljava/net/InetSocketAddress;

    invoke-direct {v1, p0, p1}, Ljava/net/InetSocketAddress;-><init>(Ljava/lang/String;I)V

    const/16 p0, 0x7d0

    invoke-virtual {v0, v1, p0}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V

    .line 221
    invoke-virtual {v0}, Ljava/net/Socket;->close()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 p0, 0x1

    return p0

    :catchall_0
    const/4 p0, 0x0

    return p0
.end method

.method public static a(Ljava/lang/String;II)Z
    .locals 3

    :goto_0
    add-int/lit8 v0, p2, -0x1

    if-lez p2, :cond_2

    .line 215
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;I)Z

    move-result p2

    if-eqz p2, :cond_0

    const/4 p0, 0x1

    goto :goto_2

    .line 216
    :cond_0
    sget-boolean p2, Lcom/estrongs/fs/impl/adb/c;->e:Z

    if-eqz p2, :cond_1

    sget-object p2, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "adb list try count "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {p2, v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    const-wide/16 v1, 0xc8

    .line 217
    :try_start_0
    invoke-static {v1, v2}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p2

    .line 218
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    move p2, v0

    goto :goto_0

    :cond_2
    const/4 p0, 0x0

    :goto_2
    return p0
.end method

.method public static b(Ljava/lang/String;Z)Lcom/estrongs/fs/impl/adb/c$c;
    .locals 4

    .line 69
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->I(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-nez p1, :cond_1

    .line 70
    sget-object p1, Lcom/estrongs/fs/impl/adb/c;->c:Ljava/util/HashMap;

    invoke-virtual {p1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_0

    goto :goto_0

    .line 71
    :cond_0
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->c:Ljava/util/HashMap;

    invoke-virtual {p0, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/estrongs/fs/impl/adb/c$c;

    return-object p0

    :cond_1
    :goto_0
    const/4 p1, 0x0

    .line 72
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "command"

    const-string v3, "getDeviceInfo"

    .line 73
    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 74
    new-instance v2, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v3, "UTF-8"

    invoke-direct {v2, v1, v3}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 75
    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0, v2}, Lcom/estrongs/fs/impl/adb/c;->c(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Lorg/json/JSONObject;

    move-result-object p0

    if-eqz p0, :cond_2

    .line 76
    new-instance v1, Lcom/estrongs/fs/impl/adb/c$c;

    invoke-direct {v1, p1}, Lcom/estrongs/fs/impl/adb/c$c;-><init>(Lcom/estrongs/fs/impl/adb/c$a;)V

    const-string v2, "name"

    .line 77
    invoke-virtual {p0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/estrongs/fs/impl/adb/c$c;->a:Ljava/lang/String;

    const-string v2, "ftpRoot"

    .line 78
    invoke-virtual {p0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/estrongs/fs/impl/adb/c$c;->b:Ljava/lang/String;

    const-string v2, "ftpPort"

    .line 79
    invoke-virtual {p0, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result p0

    iput p0, v1, Lcom/estrongs/fs/impl/adb/c$c;->c:I

    .line 80
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->c:Ljava/util/HashMap;

    invoke-virtual {p0, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v1

    :catch_0
    move-exception p0

    .line 81
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_2
    return-object p1
.end method

.method private static b()Les/h4;
    .locals 4

    .line 23
    new-instance v0, Ljava/io/File;

    sget-object v1, Lcom/estrongs/android/pop/b;->j:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 24
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 25
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    .line 26
    :cond_0
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/estrongs/android/pop/b;->j:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/KEY_PUBLIC"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 27
    new-instance v1, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/android/pop/b;->j:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "/KEY_PRIVATE"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 28
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    const/4 v3, 0x0

    if-eqz v2, :cond_1

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 29
    :try_start_0
    new-instance v2, Lcom/estrongs/fs/impl/adb/b;

    invoke-direct {v2}, Lcom/estrongs/fs/impl/adb/b;-><init>()V

    invoke-static {v2, v1, v0}, Les/h4;->a(Les/f4;Ljava/io/File;Ljava/io/File;)Les/h4;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception v0

    .line 30
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v3

    .line 31
    :cond_1
    :try_start_1
    new-instance v2, Lcom/estrongs/fs/impl/adb/b;

    invoke-direct {v2}, Lcom/estrongs/fs/impl/adb/b;-><init>()V

    invoke-static {v2}, Les/h4;->a(Les/f4;)Les/h4;

    move-result-object v2

    .line 32
    invoke-virtual {v2, v1, v0}, Les/h4;->a(Ljava/io/File;Ljava/io/File;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    return-object v2

    :catch_1
    move-exception v0

    .line 33
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v3
.end method

.method public static b(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Ljava/io/InputStream;
    .locals 2

    const/4 v0, 0x0

    .line 1
    :try_start_0
    new-instance v1, Lorg/apache/http/client/methods/HttpPost;

    invoke-direct {v1, p0}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {v1, p1}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    const-string p0, "Accept"

    const-string p1, "application/octet-stream"

    .line 3
    invoke-virtual {v1, p0, p1}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p0, "Content-type"

    const-string p1, "application/json"

    .line 4
    invoke-virtual {v1, p0, p1}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    invoke-static {v0}, Lcom/estrongs/android/util/b0;->a(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/client/HttpClient;

    move-result-object p0

    .line 6
    invoke-interface {p0, v1}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p0

    .line 7
    invoke-interface {p0}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object p0

    if-eqz p0, :cond_0

    .line 8
    invoke-interface {p0}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :cond_0
    return-object v0

    :catch_0
    move-exception p0

    .line 9
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0
.end method

.method public static b(Ljava/lang/String;I)Ljava/lang/String;
    .locals 3

    const/4 v0, 0x0

    if-eqz p0, :cond_6

    .line 53
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->w0(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    goto/16 :goto_0

    .line 54
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->I(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const-string v1, "adb://"

    if-eqz p1, :cond_5

    const/4 v2, 0x1

    if-eq p1, v2, :cond_4

    const/4 v2, 0x2

    if-eq p1, v2, :cond_3

    const/4 v2, 0x3

    if-eq p1, v2, :cond_2

    const/4 v2, 0x4

    if-eq p1, v2, :cond_1

    goto :goto_0

    .line 55
    :cond_1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/appsall"

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 56
    :cond_2
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/appssdcard"

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 57
    :cond_3
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/appsphone"

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 58
    :cond_4
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/appssystem"

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 59
    :cond_5
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/appsuser"

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_6
    :goto_0
    return-object v0
.end method

.method public static b(Lcom/estrongs/fs/g;)Z
    .locals 4

    .line 60
    instance-of v0, p0, Lcom/estrongs/fs/impl/adb/a;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 61
    :cond_0
    check-cast p0, Lcom/estrongs/fs/impl/adb/a;

    .line 62
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "command"

    const-string v3, "appLaunch"

    .line 63
    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "appPackageName"

    .line 64
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/adb/a;->n()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 65
    new-instance v2, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v3, "UTF-8"

    invoke-direct {v2, v0, v3}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 66
    invoke-virtual {p0}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-static {p0, v2}, Lcom/estrongs/fs/impl/adb/c;->c(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Lorg/json/JSONObject;

    move-result-object p0

    if-eqz p0, :cond_1

    const-string v0, "result"

    .line 67
    invoke-virtual {p0, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez p0, :cond_1

    const/4 p0, 0x1

    return p0

    :catch_0
    move-exception p0

    .line 68
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    return v1
.end method

.method public static b(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 7

    .line 34
    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->l(Ljava/lang/String;)Les/g4;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_7

    if-nez p1, :cond_0

    goto/16 :goto_2

    .line 35
    :cond_0
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v2

    .line 36
    :try_start_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "shell:pm uninstall "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 37
    invoke-virtual {v0, p1}, Les/g4;->a(Ljava/lang/String;)Les/j4;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :cond_1
    const/4 v0, 0x1

    .line 38
    :try_start_1
    invoke-virtual {p1}, Les/j4;->read()[B

    move-result-object v3

    .line 39
    new-instance v4, Ljava/lang/String;

    invoke-direct {v4, v3}, Ljava/lang/String;-><init>([B)V

    .line 40
    sget-boolean v3, Lcom/estrongs/fs/impl/adb/c;->e:Z

    if-eqz v3, :cond_2

    sget-object v3, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "########uninstall result "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v5}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    const-string v3, "Success"

    .line 41
    invoke-virtual {v4, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    const/4 v3, 0x1

    goto :goto_1

    :cond_3
    const-string v3, "Failure"

    .line 42
    invoke-virtual {v4, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    if-eqz v3, :cond_1

    goto :goto_0

    :catch_0
    move-exception v3

    .line 43
    :try_start_2
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    :goto_0
    const/4 v3, 0x0

    .line 44
    :goto_1
    invoke-virtual {p1}, Les/j4;->isClosed()Z

    move-result v4

    if-eqz v4, :cond_4

    return v1

    .line 45
    :cond_4
    invoke-virtual {p1}, Les/j4;->close()V

    if-eqz v2, :cond_5

    .line 46
    instance-of p1, v2, Les/r60;

    if-eqz p1, :cond_5

    const/4 p1, 0x2

    new-array v4, p1, [Ljava/lang/Object;

    const-wide/16 v5, 0x1

    .line 47
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    aput-object v5, v4, v1

    aput-object p0, v4, v0

    invoke-virtual {v2, v0, v4}, Les/s80;->b(I[Ljava/lang/Object;)V

    const/16 v4, 0xd

    new-array p1, p1, [Ljava/lang/Object;

    aput-object p0, p1, v1

    const/4 p0, 0x0

    aput-object p0, p1, v0

    .line 48
    invoke-virtual {v2, v4, p1}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    :cond_5
    return v3

    :catch_1
    move-exception p0

    .line 49
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v2, :cond_6

    .line 50
    instance-of p1, v2, Les/r60;

    if-eqz p1, :cond_6

    const/16 p1, 0x2710

    .line 51
    new-instance v0, Les/u80$a;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v4, 0x7f1100ee

    invoke-virtual {v3, v4}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v3, p0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v2, p1, v0}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_6
    return v1

    .line 52
    :cond_7
    :goto_2
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string p1, "uninstallApk failed, get connection or package name null"

    invoke-static {p0, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v1
.end method

.method public static c(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Lorg/json/JSONObject;
    .locals 1

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/adb/c;->d(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Ljava/lang/String;

    move-result-object p0

    if-eqz p0, :cond_1

    .line 2
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p1

    if-nez p1, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    new-instance p1, Lorg/json/JSONObject;

    invoke-direct {p1, p0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :cond_1
    :goto_0
    return-object v0

    :catch_0
    move-exception p0

    .line 4
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0
.end method

.method public static c()Z
    .locals 1

    .line 8
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public static d(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Ljava/lang/String;
    .locals 3

    const-string v0, "application/json"

    const/4 v1, 0x0

    .line 1
    :try_start_0
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    invoke-direct {v2, p0}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {v2, p1}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    const-string p0, "Accept"

    .line 3
    invoke-virtual {v2, p0, v0}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p0, "Content-type"

    .line 4
    invoke-virtual {v2, p0, v0}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    invoke-static {v1}, Lcom/estrongs/android/util/b0;->a(Lorg/apache/http/params/HttpParams;)Lorg/apache/http/client/HttpClient;

    move-result-object p0

    .line 6
    invoke-interface {p0, v2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p0

    .line 7
    invoke-static {p0}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->readResponse(Lorg/apache/http/HttpResponse;)Ljava/lang/String;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 8
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v1
.end method

.method public static f(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return p0

    .line 2
    :cond_0
    :try_start_0
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object v0

    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-interface {v0, p0}, Les/o80;->g(Ljava/lang/String;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p0, 0x1

    return p0

    :catch_0
    move-exception p0

    .line 3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static g(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return-object p0

    :cond_0
    const-string v0, "/files"

    .line 2
    invoke-virtual {p0, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    const/4 v1, 0x0

    add-int/lit8 v0, v0, 0x1

    .line 3
    invoke-virtual {p0, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static h(Ljava/lang/String;)I
    .locals 2

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->t0(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 p0, -0x1

    return p0

    .line 2
    :cond_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const-string v0, "/appsuser"

    .line 3
    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    return v1

    :cond_1
    const-string v0, "/appssystem"

    .line 4
    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 p0, 0x1

    return p0

    :cond_2
    const-string v0, "/appsphone"

    .line 5
    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 p0, 0x2

    return p0

    :cond_3
    const-string v0, "/appssdcard"

    .line 6
    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const/4 p0, 0x3

    return p0

    :cond_4
    const-string v0, "/appsall"

    .line 7
    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_5

    const/4 p0, 0x4

    return p0

    :cond_5
    return v1
.end method

.method public static i(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 4

    .line 1
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-virtual {v0, p0}, Les/p10;->c(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v0

    if-nez v0, :cond_0

    .line 2
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v0, " fail to get file obj"

    invoke-static {p0, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p0, 0x0

    return-object p0

    .line 3
    :cond_0
    new-instance v1, Lcom/estrongs/fs/e;

    invoke-direct {v1, p0}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-interface {v0}, Lcom/estrongs/fs/g;->b()J

    move-result-wide v2

    iput-wide v2, v1, Lcom/estrongs/fs/e;->g:J

    .line 5
    invoke-interface {v0}, Lcom/estrongs/fs/g;->c()J

    move-result-wide v2

    iput-wide v2, v1, Lcom/estrongs/fs/e;->h:J

    .line 6
    invoke-interface {v0}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v2

    iput-wide v2, v1, Lcom/estrongs/fs/e;->i:J

    .line 7
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p0

    iput-object p0, v1, Lcom/estrongs/fs/e;->n:Ljava/lang/String;

    .line 8
    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v2

    iput-wide v2, v1, Lcom/estrongs/fs/e;->d:J

    return-object v1
.end method

.method private static j(Ljava/lang/String;)Ljava/lang/String;
    .locals 7

    const/16 v0, 0x24

    .line 1
    invoke-static {p0, v0}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return-object p0

    :cond_0
    const-string v1, "/files"

    .line 2
    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v1, 0x6

    .line 3
    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    .line 4
    :cond_1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 5
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->N(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 6
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    .line 7
    invoke-static {p0, v4}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Z)Lcom/estrongs/fs/impl/adb/c$c;

    move-result-object p0

    const/16 v4, 0xe89

    if-eqz p0, :cond_2

    .line 8
    iget v4, p0, Lcom/estrongs/fs/impl/adb/c$c;->c:I

    .line 9
    :cond_2
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "ftp://"

    invoke-virtual {p0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, ":"

    if-eqz v1, :cond_3

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "@"

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    :cond_3
    const-string v1, ""

    :goto_0
    invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static k(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "http://"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, ":"

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const p0, 0xe981

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static l(Ljava/lang/String;)Les/g4;
    .locals 5

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->I(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const/4 v0, 0x0

    if-nez p0, :cond_0

    .line 2
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v1, "getOrCreateConnection error"

    invoke-static {p0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-object v0

    .line 3
    :cond_0
    sget-object v1, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    invoke-virtual {v1, p0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 4
    sget-object v1, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    invoke-virtual {v1, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/g4;

    .line 5
    invoke-virtual {v1}, Les/g4;->d()Z

    move-result v2

    if-nez v2, :cond_1

    .line 6
    sget-object v2, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    invoke-virtual {v2, v1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_1
    return-object v1

    :cond_2
    :goto_0
    const/16 v1, 0x15b3

    const-string v2, ":"

    .line 7
    invoke-virtual {p0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 8
    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 9
    aget-object v2, v1, v2

    const/4 v3, 0x1

    .line 10
    aget-object v1, v1, v3

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    goto :goto_1

    :cond_3
    move-object v2, p0

    .line 11
    :goto_1
    new-instance v3, Ljava/net/Socket;

    invoke-direct {v3}, Ljava/net/Socket;-><init>()V

    .line 12
    new-instance v4, Ljava/net/InetSocketAddress;

    invoke-direct {v4, v2, v1}, Ljava/net/InetSocketAddress;-><init>(Ljava/lang/String;I)V

    .line 13
    invoke-static {}, Lcom/estrongs/fs/impl/adb/c;->b()Les/h4;

    move-result-object v1

    if-nez v1, :cond_4

    .line 14
    sget-object p0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v1, "fail to getAdbCrypto()"

    invoke-static {p0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    :try_start_0
    invoke-virtual {v3}, Ljava/net/Socket;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception p0

    .line 16
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    :goto_2
    return-object v0

    :cond_4
    const/16 v2, 0x4e20

    .line 17
    :try_start_1
    invoke-virtual {v3, v4, v2}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V

    .line 18
    invoke-static {v3, v1}, Les/g4;->a(Ljava/net/Socket;Les/h4;)Les/g4;

    move-result-object v0

    .line 19
    invoke-virtual {v0}, Les/g4;->b()V

    .line 20
    sget-object v1, Lcom/estrongs/fs/impl/adb/c;->b:Ljava/util/HashMap;

    invoke-virtual {v1, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_3

    :catch_1
    move-exception p0

    .line 21
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v0, :cond_5

    .line 22
    :try_start_2
    invoke-virtual {v0}, Les/g4;->close()V

    goto :goto_3

    .line 23
    :cond_5
    invoke-virtual {v3}, Ljava/net/Socket;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_3

    :catch_2
    move-exception p0

    .line 24
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_3
    return-object v0
.end method

.method private static m(Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    const/16 v0, 0x24

    .line 1
    invoke-static {p0, v0}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;I)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static n(Ljava/lang/String;)Z
    .locals 0

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/adb/c;->l(Ljava/lang/String;)Les/g4;

    move-result-object p0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method

.method public static o(Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Z)Lcom/estrongs/fs/impl/adb/c$c;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, v0, Lcom/estrongs/fs/impl/adb/c$c;->a:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    invoke-virtual {v1, p0, v0}, Lcom/estrongs/android/pop/l;->m(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 4
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcom/estrongs/fs/g;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Ljava/lang/String;Lcom/estrongs/android/util/TypedMap;)Ljava/io/OutputStream;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 88
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 p1, 0x0

    return-object p1

    :cond_0
    const-wide/16 v0, 0x0

    if-eqz p2, :cond_1

    const-string v2, "length"

    .line 89
    invoke-virtual {p2, v2}, Lcom/estrongs/android/util/TypedMap;->getLong(Ljava/lang/String;)J

    move-result-wide v2

    goto :goto_0

    :cond_1
    move-wide v2, v0

    :goto_0
    cmp-long p2, v2, v0

    if-nez p2, :cond_2

    .line 90
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object p2

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p2, v0}, Les/o80;->e(Ljava/lang/String;)Z

    .line 91
    :cond_2
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object p2

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {p2, p1}, Les/o80;->c(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;Z)Ljava/io/OutputStream;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 86
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_0

    .line 87
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object p2

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {p2, p1}, Les/o80;->c(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1

    return-object p1

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method

.method public a(Lcom/estrongs/fs/g;Lcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;
    .locals 16
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/g;",
            "Lcom/estrongs/fs/h;",
            "Lcom/estrongs/android/util/TypedMap;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v2, p2

    const-string v3, ".apk"

    .line 1
    invoke-interface/range {p1 .. p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v4

    .line 2
    invoke-static {v4}, Lcom/estrongs/fs/impl/adb/c;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    .line 4
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 5
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "/"

    .line 6
    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    const-string v10, "start"

    const-string v11, " can not be connected."

    const v12, 0xe981

    const/16 v13, 0xa

    const/4 v15, 0x1

    const/4 v14, 0x0

    if-eqz v9, :cond_6

    .line 7
    :try_start_0
    invoke-virtual {v1, v4}, Lcom/estrongs/fs/impl/adb/c;->e(Ljava/lang/String;)Z

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    if-eqz v0, :cond_5

    .line 8
    :try_start_1
    invoke-virtual {v1, v4, v10}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    if-eqz v0, :cond_4

    .line 9
    invoke-static {v7, v12, v13}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;II)Z

    move-result v0

    if-nez v0, :cond_0

    .line 10
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Adb port "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v12}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-object v14

    .line 11
    :cond_0
    invoke-static {v4, v15}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Z)Lcom/estrongs/fs/impl/adb/c$c;

    .line 12
    iget-object v0, v5, Les/s80;->c:Les/w80$a;

    iput-object v14, v0, Les/w80$a;->r:Ljava/lang/String;

    .line 13
    invoke-virtual {v5, v0}, Les/s80;->a(Les/w80$a;)V

    .line 14
    invoke-virtual {v4, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 15
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v0

    sub-int/2addr v0, v15

    const/4 v2, 0x0

    invoke-virtual {v4, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    .line 16
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/appsuser"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 17
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "/files"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 18
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcom/estrongs/android/pop/l;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_2

    .line 19
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v4, 0x7f110afa

    invoke-virtual {v3, v4}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 20
    :cond_2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v4

    invoke-virtual {v4, v2}, Lcom/estrongs/android/pop/l;->f(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_3

    .line 21
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v4

    const v5, 0x7f110ab3

    invoke-virtual {v4, v5}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v4

    .line 22
    :cond_3
    new-instance v5, Lcom/estrongs/fs/m;

    sget-object v7, Lcom/estrongs/fs/l;->P:Lcom/estrongs/fs/l;

    invoke-direct {v5, v0, v7, v3}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;Lcom/estrongs/fs/l;Ljava/lang/String;)V

    .line 23
    new-instance v0, Lcom/estrongs/fs/m;

    sget-object v3, Lcom/estrongs/fs/l;->P:Lcom/estrongs/fs/l;

    invoke-direct {v0, v2, v3, v4}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;Lcom/estrongs/fs/l;Ljava/lang/String;)V

    .line 24
    invoke-virtual {v6, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 25
    invoke-virtual {v6, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-object v6

    .line 26
    :cond_4
    new-instance v0, Lcom/estrongs/fs/impl/adb/AdbFsException;

    sget-object v2, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_NEED_UPDATE:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    const-string v3, "ES need to update."

    invoke-direct {v0, v3, v2}, Lcom/estrongs/fs/impl/adb/AdbFsException;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;)V

    throw v0

    :catch_0
    move-exception v0

    move-object v2, v0

    .line 27
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    return-object v14

    .line 28
    :cond_5
    new-instance v0, Lcom/estrongs/fs/impl/adb/AdbFsException;

    sget-object v2, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_NOT_INSTALLED:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    const-string v3, "ES not installed."

    invoke-direct {v0, v3, v2}, Lcom/estrongs/fs/impl/adb/AdbFsException;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;)V

    throw v0

    :catch_1
    move-exception v0

    move-object v2, v0

    .line 29
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    return-object v14

    :cond_6
    const-string v5, "/apps"

    .line 30
    invoke-virtual {v0, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_c

    .line 31
    :try_start_2
    invoke-static {v7, v12}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;I)Z

    move-result v0

    if-nez v0, :cond_7

    .line 32
    invoke-virtual {v1, v4, v10}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;Ljava/lang/String;)Z

    .line 33
    invoke-static {v7, v12, v13}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;II)Z

    move-result v0

    if-nez v0, :cond_7

    return-object v14

    .line 34
    :cond_7
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 35
    invoke-static {v4}, Lcom/estrongs/fs/impl/adb/c;->h(Ljava/lang/String;)I

    move-result v5

    .line 36
    invoke-direct {v1, v5}, Lcom/estrongs/fs/impl/adb/c;->a(I)Ljava/lang/String;

    move-result-object v7

    if-nez v7, :cond_8

    return-object v14

    :cond_8
    const-string v8, "command"

    .line 37
    invoke-virtual {v0, v8, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 38
    new-instance v7, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v8, "UTF-8"

    invoke-direct {v7, v0, v8}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 39
    invoke-static {v4}, Lcom/estrongs/fs/impl/adb/c;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, v7}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Lorg/json/JSONArray;

    move-result-object v7

    if-eqz v7, :cond_10

    const/4 v14, 0x0

    .line 40
    :goto_0
    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v0
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3

    if-ge v14, v0, :cond_10

    .line 41
    :try_start_3
    invoke-virtual {v7, v14}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v0

    .line 42
    new-instance v8, Lcom/estrongs/fs/impl/adb/c$b;

    invoke-direct {v8}, Lcom/estrongs/fs/impl/adb/c$b;-><init>()V

    const-string v9, "packageName"

    .line 43
    invoke-virtual {v0, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->b:Ljava/lang/String;

    const-string v9, "label"

    .line 44
    invoke-virtual {v0, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->a:Ljava/lang/String;

    if-eqz v9, :cond_b

    .line 45
    iget-object v10, v8, Lcom/estrongs/fs/impl/adb/c$b;->b:Ljava/lang/String;

    if-nez v10, :cond_9

    goto :goto_1

    .line 46
    :cond_9
    invoke-virtual {v9, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_a

    .line 47
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, v8, Lcom/estrongs/fs/impl/adb/c$b;->a:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    iput-object v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->a:Ljava/lang/String;

    .line 48
    :cond_a
    iput v5, v8, Lcom/estrongs/fs/impl/adb/c$b;->f:I

    .line 49
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->I(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->e:Ljava/lang/String;

    const-string v9, "mTime"

    .line 50
    invoke-virtual {v0, v9}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v9

    iput-wide v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->h:J

    const-string v9, "size"

    .line 51
    invoke-virtual {v0, v9}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v9

    iput-wide v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->g:J

    const-string v9, "version"

    .line 52
    invoke-virtual {v0, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v8, Lcom/estrongs/fs/impl/adb/c$b;->c:Ljava/lang/String;

    const-string v9, "versionCode"

    .line 53
    invoke-virtual {v0, v9}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, v8, Lcom/estrongs/fs/impl/adb/c$b;->d:I

    .line 54
    new-instance v0, Lcom/estrongs/fs/impl/adb/a;

    invoke-direct {v0, v8}, Lcom/estrongs/fs/impl/adb/a;-><init>(Lcom/estrongs/fs/impl/adb/c$b;)V

    if-eqz v2, :cond_b

    .line 55
    invoke-interface {v2, v0}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v8

    if-eqz v8, :cond_b

    .line 56
    invoke-virtual {v6, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2

    goto :goto_1

    :catch_2
    move-exception v0

    .line 57
    :try_start_4
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3

    :cond_b
    :goto_1
    add-int/lit8 v14, v14, 0x1

    goto :goto_0

    :catch_3
    move-exception v0

    .line 58
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_3

    :cond_c
    const/4 v0, 0x0

    .line 59
    invoke-static {v4, v0}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Z)Lcom/estrongs/fs/impl/adb/c$c;

    move-result-object v0

    if-nez v0, :cond_d

    .line 60
    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v2, "Fail to get device info."

    invoke-static {v0, v2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-object v14

    .line 61
    :cond_d
    iget v3, v0, Lcom/estrongs/fs/impl/adb/c$c;->c:I

    invoke-static {v7, v3, v13}, Lcom/estrongs/fs/impl/adb/c;->a(Ljava/lang/String;II)Z

    move-result v3

    if-nez v3, :cond_e

    .line 62
    sget-object v2, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Ftp port "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, v0, Lcom/estrongs/fs/impl/adb/c$c;->c:I

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-object v14

    .line 63
    :cond_e
    invoke-static {v4}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    .line 64
    :try_start_5
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-static {v4}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3, v15}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;Z)Ljava/util/List;

    move-result-object v0

    .line 65
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_f
    :goto_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_10

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    .line 66
    instance-of v4, v3, Les/p80;

    if-eqz v4, :cond_f

    .line 67
    new-instance v4, Lcom/estrongs/fs/impl/adb/d;

    check-cast v3, Les/p80;

    invoke-direct {v4, v3}, Lcom/estrongs/fs/impl/adb/d;-><init>(Les/p80;)V

    if-eqz v2, :cond_f

    .line 68
    invoke-interface {v2, v4}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v3

    if-eqz v3, :cond_f

    .line 69
    invoke-virtual {v6, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_5
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_5 .. :try_end_5} :catch_4

    goto :goto_2

    :cond_10
    :goto_3
    return-object v6

    :catch_4
    move-exception v0

    .line 70
    instance-of v2, v0, Lcom/estrongs/android/exception/GeneralException;

    const-string v3, "username or passwork error"

    if-nez v2, :cond_12

    .line 71
    invoke-static {v0}, Lcom/estrongs/android/exception/a;->a(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v2

    .line 72
    instance-of v2, v2, Ljava/lang/IllegalArgumentException;

    if-eqz v2, :cond_11

    invoke-virtual {v0}, Lcom/estrongs/android/exception/AbstractException;->getMessage()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_11

    invoke-virtual {v0}, Lcom/estrongs/android/exception/AbstractException;->getMessage()Ljava/lang/String;

    move-result-object v2

    const-string v4, "530"

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_11

    .line 73
    new-instance v0, Lcom/estrongs/fs/impl/adb/AdbFsException;

    sget-object v2, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_AUTH_FAILED:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    invoke-direct {v0, v3, v2}, Lcom/estrongs/fs/impl/adb/AdbFsException;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;)V

    throw v0

    .line 74
    :cond_11
    throw v0

    .line 75
    :cond_12
    new-instance v0, Lcom/estrongs/fs/impl/adb/AdbFsException;

    sget-object v2, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_AUTH_FAILED:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    invoke-direct {v0, v3, v2}, Lcom/estrongs/fs/impl/adb/AdbFsException;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;)V

    goto :goto_5

    :goto_4
    throw v0

    :goto_5
    goto :goto_4
.end method

.method public a(Lcom/estrongs/fs/g;Lcom/estrongs/fs/g;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 80
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    .line 81
    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 82
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->s0(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->u0(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_0

    .line 83
    :cond_0
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->v0(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 84
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object v0

    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {p2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-interface {v0, p1, p2}, Les/o80;->renameFile(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p1

    return p1

    :cond_1
    const/4 p1, 0x0

    return p1

    .line 85
    :cond_2
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/pop/l;->h(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/UnsupportedEncodingException;,
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .line 186
    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->l(Ljava/lang/String;)Les/g4;

    move-result-object p1

    invoke-static {p1, p2}, Lcom/estrongs/fs/impl/adb/c;->a(Les/g4;Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method public b(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 10
    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "/apps"

    .line 11
    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    .line 12
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "command"

    const-string v3, "appPull"

    .line 13
    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 14
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v2

    invoke-virtual {v2, p1}, Les/p10;->c(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 15
    instance-of v2, p1, Lcom/estrongs/fs/impl/adb/a;

    if-nez v2, :cond_0

    goto :goto_0

    .line 16
    :cond_0
    check-cast p1, Lcom/estrongs/fs/impl/adb/a;

    const-string v2, "appPackageName"

    .line 17
    invoke-virtual {p1}, Lcom/estrongs/fs/impl/adb/a;->n()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 18
    new-instance v2, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v3, "UTF-8"

    invoke-direct {v2, v1, v3}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    invoke-virtual {p1}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->k(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v2}, Lcom/estrongs/fs/impl/adb/c;->b(Ljava/lang/String;Lorg/apache/http/HttpEntity;)Ljava/io/InputStream;

    move-result-object p1

    return-object p1

    .line 20
    :cond_1
    :goto_0
    sget-object p1, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v1, "getInputStream fail to get file obj"

    invoke-static {p1, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception p1

    .line 21
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0

    .line 22
    :cond_2
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object v0

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, p1}, Les/o80;->i(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p1

    return-object p1
.end method

.method public c(Ljava/lang/String;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 5
    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "/"

    .line 6
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "/apps"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 7
    :cond_0
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object v0

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, p1}, Les/o80;->a(Ljava/lang/String;)Z

    move-result p1

    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return p1
.end method

.method public d(Ljava/lang/String;)Z
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 9
    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "/"

    .line 10
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x1

    if-nez v1, :cond_2

    const-string v1, "/apps"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_2

    const-string v3, "/files"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    goto :goto_0

    .line 11
    :cond_0
    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    return v2

    .line 12
    :cond_1
    invoke-static {}, Les/r80;->b()Les/o80;

    move-result-object v0

    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, p1}, Les/o80;->exists(Ljava/lang/String;)Z

    move-result p1

    return p1

    :cond_2
    :goto_0
    return v2
.end method

.method public e(Ljava/lang/String;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .line 1
    invoke-static {p1}, Lcom/estrongs/fs/impl/adb/c;->l(Ljava/lang/String;)Les/g4;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "shell:pm path "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/Application;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    .line 3
    :try_start_0
    invoke-virtual {p1, v0}, Les/g4;->a(Ljava/lang/String;)Les/j4;

    move-result-object p1

    .line 4
    invoke-virtual {p1}, Les/j4;->isClosed()Z

    move-result v0

    const/4 v2, 0x0

    if-eqz v0, :cond_0

    return v2

    .line 5
    :cond_0
    invoke-virtual {p1}, Les/j4;->read()[B

    move-result-object v0

    .line 6
    new-instance v3, Ljava/lang/String;

    invoke-direct {v3, v0}, Ljava/lang/String;-><init>([B)V

    .line 7
    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_1

    const/4 v1, 0x0

    .line 8
    :cond_1
    sget-boolean v0, Lcom/estrongs/fs/impl/adb/c;->e:Z

    if-eqz v0, :cond_2

    sget-object v0, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "########checkESInstalled result "

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    :cond_2
    invoke-virtual {p1}, Les/j4;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 10
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return v1

    .line 11
    :cond_3
    sget-object p1, Lcom/estrongs/fs/impl/adb/c;->a:Ljava/lang/String;

    const-string v0, "installApk failed, get connection null"

    invoke-static {p1, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    new-instance p1, Ljava/io/IOException;

    invoke-direct {p1}, Ljava/io/IOException;-><init>()V

    throw p1
.end method
